<?php

require('../configs/include.php');

class c_constructor extends super_controller {

    public function display() {
        
        settype($data,'object');
        $data->id = "1001";
        $data->name = "Andrew";
        $data->salary = 50000;
        
        $clerk = new clerk($data);
        
         $clerk->aumento();
        //$clerk->set('salary', $clerk->aumento());
        $this->engine->assign('title', 'Class Constructor');
        $this->engine->assign('clerk', $clerk);
        $this->engine->display('header.tpl');
        $this->engine->display('constructor.tpl');
        $this->engine->display('footer.tpl');
    }

    public function run() {
        $this->display();
    }

}

$call = new c_constructor();
$call->run();
?>
